/**
 *
 */
package com.ssyt.examinationsystem.service.impl;

import com.ssyt.examinationsystem.dao.IScoreInfoDAO;
import com.ssyt.examinationsystem.dao.impl.ScoreInfoDAOImpl;
import com.ssyt.examinationsystem.entity.ScoreInfo;
import com.ssyt.examinationsystem.service.IScoreInfoService;

import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 */
public class ScoreInfoServiceImpl implements IScoreInfoService {
    IScoreInfoDAO scoreDao = new ScoreInfoDAOImpl();

    @Override
    public int addScore(ScoreInfo score) {
        return scoreDao.addScore(score);
    }

    @Override
    public int updateScoreByPaperIdAndStuId(ScoreInfo score) {
        return scoreDao.updateScoreByPaperIdAndStuId(score);
    }

    @Override
    public int updateScore(ScoreInfo score) {
        return scoreDao.updateScore(score);
    }

    @Override
    public int deleteScore(String scoreId) {
        return scoreDao.deleteScore(scoreId);
    }

    @Override
    public List<Map<String, Object>> getScores() {
        return scoreDao.getScores();
    }

    @Override
    public Map<String, Object> getScoreByStuId(String stuId) {
        return scoreDao.getScoreByStuId(stuId);
    }

}
